/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.bean.util;

import com.openbravo.bean.Service;

/**
 *
 * @author Administrator
 */
public class SerivceHelper {

    public static String printServiceName(Service service) {
        String printName = "";
        if (Service.SERVICETYPE_user.equalsIgnoreCase(service.getM_sType())) {//用户类
            printName += "${list.SERVICETYPE_user}";
        } else if (Service.SERVICETYPE_place.equalsIgnoreCase(service.getM_sType())) { //资源类
            printName += "${list.SERVICETYPE_place}";
        } else if (Service.SERVICETYPE_product.equalsIgnoreCase(service.getM_sType())) {//产品类
            printName += "${list.SERVICETYPE_product}";
        }
        printName += "-" + service.getM_sName();
        return printName;
    }
}
